package org.oak.controller;


import org.apache.dubbo.config.annotation.DubboReference;
import org.oak.service.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * org.oak.controller.DemoController
 *
 * @author ZRS
 * @version V1.0
 * @since 2025/10/30 01:16
 */

@RestController
public class DemoController {

    @DubboReference(version = "1.0.0", check = false)
    private DemoService demoService;

    @GetMapping("/hello/{name}")
    public String sayHello(@PathVariable String name) {
        return demoService.sayHello(name);
    }

}